package com.example.day2201;

/**
 * @author Lenovo
 */
public class Printable {
    public
    interface printable {
        void printString(String s);
    }

    public static class PrintableDemo {
        public static void main(String[] args) {
            usePrintable(System.out::println);
            usePrintable(System.out::println);
        }

        private static void usePrintable(printable p) {
            p.printString("爱生活爱Java");
        }

    }
}
